/**
 * 
 */
package group.anglers.bpmn.core.local.services;

import java.util.List;

import group.anglers.bpmn.core.local.model.mappings.ProcessInstance;
import group.anglers.bpmn.core.local.models.ProcessContent;
import group.anglers.bpmn.core.local.models.ProcessPK;
import group.anglers.om.core.exceptions.OmException;

import javax.ejb.Local;

/**
 * @author an.pham
 *
 */
@Local
public interface ProcessLocalService {
	public long deploy(String processId, String name, Double version, String packageName, String content) throws OmException;
	public List<ProcessContent> retrieveEnabled() throws OmException;
	public List<ProcessInstance> retrieveAll() throws OmException;
	public ProcessPK findLatestVersion(String processId, String packageName) throws OmException;
}
